package com.panshi.vo;


import java.io.Serializable;

public class ArticleOkVO implements Serializable, Comparable<ArticleOkVO> {
    private int id;
    private String a_tid;
    private String a_title;
    private String a_content;
    private String a_img_url;
    private String a_create_date;
    private int a_read_sum;
    private int a_state;
    private String a_ok_date;
    private int a_comment_sum;
    private String a_abstract;
    private int a_collet_sum;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getA_tid() {
        return a_tid;
    }

    public void setA_tid(String a_tid) {
        this.a_tid = a_tid;
    }

    public String getA_title() {
        return a_title;
    }

    public void setA_title(String a_title) {
        this.a_title = a_title;
    }

    public String getA_content() {
        return a_content;
    }

    public void setA_content(String a_content) {
        this.a_content = a_content;
    }

    public String getA_img_url() {
        return a_img_url;
    }

    public void setA_img_url(String a_img_url) {
        this.a_img_url = a_img_url;
    }

    public String getA_create_date() {
        return a_create_date;
    }

    public void setA_create_date(String a_create_date) {
        this.a_create_date = a_create_date;
    }

    public int getA_read_sum() {
        return a_read_sum;
    }

    public void setA_read_sum(int a_read_sum) {
        this.a_read_sum = a_read_sum;
    }

    public int getA_state() {
        return a_state;
    }

    public void setA_state(int a_state) {
        this.a_state = a_state;
    }

    public String getA_ok_date() {
        return a_ok_date;
    }

    public void setA_ok_date(String a_ok_date) {
        this.a_ok_date = a_ok_date;
    }

    public int getA_comment_sum() {
        return a_comment_sum;
    }

    public void setA_comment_sum(int a_comment_sum) {
        this.a_comment_sum = a_comment_sum;
    }

    public String getA_abstract() {
        return a_abstract;
    }

    public void setA_abstract(String a_abstract) {
        this.a_abstract = a_abstract;
    }

    public int getA_collet_sum() {
        return a_collet_sum;
    }

    public void setA_collet_sum(int a_collet_sum) {
        this.a_collet_sum = a_collet_sum;
    }

    @Override
    public String toString() {
        return "ArticleOkVO{" +
                "id=" + id +
                ", a_tid=" + a_tid +
                ", a_title='" + a_title + '\'' +
                ", a_content='" + a_content + '\'' +
                ", a_img_url='" + a_img_url + '\'' +
                ", a_create_date='" + a_create_date + '\'' +
                ", a_read_sum=" + a_read_sum +
                ", a_state=" + a_state +
                ", a_ok_date='" + a_ok_date + '\'' +
                ", a_comment_sum=" + a_comment_sum +
                ", a_abstract='" + a_abstract + '\'' +
                ", a_collet_sum=" + a_collet_sum +
                '}';
    }

    @Override
    public int compareTo(ArticleOkVO o) {
        return o.a_read_sum;
    }
}
